<template>
  <div>
    <div class="title">数据统计</div>
    <div class="bgc">
      <!-- 第一行 -->
      <a-row>
        <a-col :span="10">
          <a-row>
            <a-col :span="10">
              <div id="equipment" class="card">
                <p>设备数</p>
                <p>2020-4-20</p>
                <p style="color:#24D2FF">100个</p>
              </div>
            </a-col>

            <a-col :span="10">
              <div id="power" class="card">
                <p>总电量</p>
                <p>2020-4-20</p>
                <p style="color:#37EC67">100%</p>
              </div>
            </a-col>
          </a-row>
          <a-row>
            <a-col :span="10">
              <div id="savePower" class="card">
                <p>节约电量</p>
                <p>2020-4-20</p>
                <p style="color:#242BFF">50%</p>
              </div>
            </a-col>
            <a-col :span="10">
              <div id="temperature" class="card">
                <p>线路温度</p>
                <p>2020-4-20</p>
                <p style="color:#A437EC">20℃</p>
              </div>
            </a-col>
          </a-row>
        </a-col>
        <a-col :span="14">
          <div class="cardList">
            <a-row>
              <a-col :span="22">
                <taiqu-card />
              </a-col>
            </a-row>
          </div>
        </a-col>
      </a-row>
      <!-- 第二行 -->
      <a-row style="position:relative;">
        <a-col :span="5">
          <a-card class="card1" style="height:245px;margin-top:35px" :bordered="false">
            <a-row>
              <a-col :span="24">
                <div id="chart4">
                  <p class="incircle">600</p>
                </div>
                <p class="circle">行为次数(次)</p>
              </a-col>
            </a-row>
          </a-card>
        </a-col>

        <a-col :span="5" style="margin-left:22px">
          <a-card class="card1" style="height:245px;margin-top:35px" :bordered="false">
            <a-row>
              <a-col :span="24">
                <div id="chart5">
                  <p class="incircle">800</p>
                </div>
                <p class="circle">节约电量(度)</p>
              </a-col>
            </a-row>
          </a-card>
        </a-col>
        <a-col :span="13" style="margin-left:22px;">
          <a-card class="card1" style="height:245px;margin-top:35px" :bordered="false">
            <div id="chart1"></div>
          </a-card>
        </a-col>
      </a-row>
      <!-- 第三行 -->
      <a-row style="margin-top:42px">
        <a-col :span="5">
          <a-card class="card1" id="chart2"  :bordered="false">
            
          </a-card>
        </a-col>
        <a-col  style="margin-left:352px;width:1218px">
          <a-card
            class="card1"
            style="height:280px;margin-top:2px;;"
            :bordered="false"
          >
            <div id="chart3"></div>
          </a-card>
        </a-col>
      </a-row>
    </div>
  </div>
</template>

<script>
import taiquCard from "./components/taiquCard";
export default {
  components: {
    taiquCard
  },
  mounted() {
    this.$chart.line1("chart1");
    this.$chart.line2("chart2");
    this.$chart.line3("chart3");
  }
};
</script>

<style scoped>
.title {
  position: relative;
  font-size: 20px;
  color: rgba(0, 0, 0, 1);
  font-weight: bold;
  top: -12px;
}
.bgc {
  width: 1611px;
  background: rgba(239, 244, 247, 1);
  border-radius: 10px;
  padding-top: 35px;
  padding-left: 20px;
}
/* 第一行开始 */
.card1 {
  height: 244px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
#power {
  margin-left: 5px;
}
#temperature {
  margin-left: 5px;
}
.card {
  position: relative;
  width: 260px;
  height: 130px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 10px 0px 10px 0;
  padding-left: 20px;
  padding-top: 13px;
}
.cardList {
  width: 1095px;
  position: relative;
  right: 99px;
  top: 10px;
}
.card p:first-child {
  font-size: 16px;
  line-height: 27px;
  color: rgba(0, 0, 0, 1);
}
.card p:nth-child(2) {
  font-size: 10px;
  line-height: 17px;
  color: rgba(153, 153, 153, 1);
  margin-top: -8px;
}
.card p:nth-child(3) {
  font-size: 20px;
  line-height: 34px;
  margin-top: -3px;
}

/* 第一行结束 */

/* 第二行开始 */
.circle {
  color: black;
  position: relative;
  top: 15px;
  left: 80px;
  font-size: 18px;
  font-weight: 540;
}
.incircle {
  color: aliceblue;
  position: relative;
  top: 50px;
  left: 50px;
  font-size: 30px;
  font-weight: 540;
  text-shadow: -1px 1px 1px rgba(255, 255, 255, 0.6);
}
#chart4 {
  width: 150px;
  height: 150px;
  background-color: rgb(44, 104, 182);
  border-radius: 50%;
  box-shadow: 0 0 0 10px #ff9d36 inset;
  margin: auto;
}
#chart5 {
  width: 150px;
  height: 150px;
  background-color: rgb(44, 104, 182);
  border-radius: 50%;
  box-shadow: 0 0 0 10px #00d5dc inset;
  margin: auto;
}
#chart1 {
  height: 280px;
  width: 100%;
  margin-top: -20px;
}
/* 第二行结束 */
/* 第三行开始 */
#chart2 {
 height:280px;
 width:100%;
 margin-top:2px;
 padding-top:20px;
 padding-left:10px ;
 margin-bottom:20px;

}
#chart3 {
  height: 280px;
}
/* 第三行结束 */
</style>